/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Ordenamiento;

import Negocio.TipoRol;
import java.util.Comparator;

/**
 *
 * @author Diego
 */
public class OrdenTipoRol implements Comparator<TipoRol>{
    @Override
    public int compare(TipoRol a1, TipoRol a2) {
        //return (a1.getNombre().equals(a2.getNombre())  ) ? (-1) : 1;
        return (a1.getNombre().compareTo(a2.getNombre()));
    }
}
